home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / DINKDEMO / DC_SCRIB / DSCRIBBL.H1 < prev    next >
Text File  |  1992-07-08  |  749b  |  39 lines

  1. /*
  2.     File:        DScribbleWind.h
  3.  
  4.     Written by:    Mark Gross
  5.  
  6.     Copyright:    ⌐ 1992 by Applied Technical Software, all rights reserved.
  7.     Use at your own risk.
  8.  
  9. */
  10.  
  11. // This is the class declaration of the DScribbleWindow
  12. // sub-class to ScrollWindow for the Scribble application
  13. #ifndef __DSCRIBBLEWIND__
  14. #define __DSCRIBBLEWIND__
  15.  
  16. #ifndef penPat
  17.     typedef enum {patBlack, patGray, patWhite} penPat;
  18. #endif
  19.  
  20. //class DScrollWindow;
  21. #include "DScrollWindow.h"
  22.  
  23. class DScribbleWind : public DScrollWindow
  24. {
  25.  
  26. public:
  27.     short            fPenSize;
  28.     penPat            fPenPat;
  29.     
  30.     virtual Boolean Init(DDocument *doc, Boolean hasColorWindows);
  31.     virtual void    Draw(Rect *r);
  32.  
  33. protected:
  34.  
  35.     virtual void    DoContent(EventRecord* theEvent);
  36. };// end of class declaration
  37.  
  38.  
  39. #endif __DSCRIBBLEWIND__